package com.jic.member.mapper.power;

import java.lang.Long;
import java.util.List;


import com.jic.member.entity.power.MevipRule;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 会员vip权益关联表
 * @author : 
 * @email : 
 * @since : 2020-04-06 02:05:20
 * @version : v1.0.0
 */
@Mapper
public interface  MevipRuleMapper {

    long insert(MevipRule mevipRule);

    long delete(Long id);

    long update(MevipRule mevipRule);

    MevipRule queryByPrimaryKey(Long id);

    List<MevipRule> query(MevipRule mevipRule);

    List<MevipRule> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("mevipRule") MevipRule mevipRule);

    long queryPageCount(MevipRule mevipRule);

    long deleteByDeptId(@Param("deptId")Long deptId, @Param("vipId")Long vipId);

    List<MevipRule> queryMerchantOrStorePage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("mevipRule") MevipRule mevipRule);

    long queryMerchantOrStorePageCount(MevipRule mevipRule);
}